Skip to content

Conversation

@BryonLewis
Copy link
Collaborator

@BryonLewis BryonLewis commented Jan 17, 2026

  • enables the rotate handle with a 'grab' icon for hovering style for rectangles
  • adds function for calculating the rotation between rotated bounding boxes
  • Stores the rotation value as a detection attribute called 'rotation'
  • Added logic for reserved fields for detection and track attributes
  • All bboxes should be stored as an axis-aligned bbox with a rotation in radians CCW about the center in radians
  • If the rotation isn't default, a small arrow is drawn on the 'right' side of the bbox

TODO:

  • fix that resizing is recalculating the size of the base bbox, when you resize the rotation doesn't change but the size changes. To fix this I think I need to check the rotated new version size vs the previous size and that changes the center point but not the rotation.
    • need to check points and see if the points between old and new are in a line that has a rotation that matches the rotation value. This is because when adjusting the width/height it's still a box so if the angle between the resized points is the same we know it's a size adjustment and not a rotation. I.E calculate the vector (directionality of points and compare.

@BryonLewis BryonLewis changed the title initial attempt at adding object oriented bounding boxes Object Oriented Bounding Boxes Jan 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant